<div data-role="page">

  <div data-role="header" data-position="fixed" data-tap-toggle="false">
    <h1>Đặt câu hỏi</h1>
    <a data-rel="back" data-role="back">Sinh viên</a>
  </div>

  <div data-role="content">
    <form method="post" action="/app/Student/do_ask_question">
      <fieldset data-role="controlgroup" data-type="horizontal">
      <select name="question[grade_id]" data-inline="true" id="grade-choice" data-theme="d">
        <% @grades.each do |grade| %>
        <option value="<%= grade['id'] %>"><%= grade['name'] %></option>
        <% end %>
      </select>

      <select name="question[subject_id]" id="subject-choice" data-inline="true" data-theme="d">
        <% @subjects.each do |subject| %>
        <option value="<%= subject['id'] %>"><%= subject['name'] %></option>
        <% end %>
      </select>
</fieldset>
      <textarea name="question[content]" placeholder="Nội dung câu hỏi"></textarea>
      <input type="submit" value="Gửi câu hỏi" data-theme="b"/>
    </form>

  </div>

</div>
